package com.ascainiao.paygame.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserAdminMapper extends BaseMapper<UserAdmin> {
    @Select("SELECT salt FROM user_admin WHERE account = #{value}")
    String selectSalt(@Param("value") String value);
    @Select("SELECT * FROM user_admin WHERE account = #{account} and password = #{password}")
    List<UserAdmin> selectUserAdmin(@Param("account") String account, @Param("password") String password);
}
